<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>cqtd</title>
<jsp:include page="import.jsp"></jsp:include>
<script type="text/javascript">
var basePath = '${pageContext.request.contextPath}';

var menuJson ={};
var toolJson ={};

/*
 * 从页面直接访问http://localhost:8080/cqtd/menu/menuAction/getMenuSolustion2.action
 * 用此种方式会找不到:http://localhost:8080/cqtd/menu/menuAction/app.js
 * 正确的app.js的路径为:http://localhost:8080/cqtd/mis/app.js
 */
/*
menuJson =Ext.JSON.decode(${westMenuJson}).models;
toolJson =Ext.JSON.decode(${centerMenuJson}).data;
*/

/*
 * 采用如下的AJAX同步获取菜单方案即可
 * 用户登陆后直接跳转到http://localhost:8080/cqtd/mis/index.jsp即可
 */
Ext.Ajax.request({
	url: basePath+'/menu/menuAction/getMenuSolustion.action',
	method:"POST",
	async:false,
	timeout:4000,
	success:function(response,opts){
		menuJson = Ext.JSON.decode(Ext.JSON.decode(response.responseText).westMenuJson).models;
		toolJson = Ext.JSON.decode(Ext.JSON.decode(response.responseText).centerMenuJson).data;	
	}
});

</script>
<script type="text/javascript" src="app.js"></script>
</head>
<body>
</body>
</html>